package com.kaoker.system.entity;

import java.util.List;
import java.util.Set;

/**
 * 科目的知识章节结构:  章 -- 节 -- 小节 --- 知识点/考点/考题，etc.
 * 章的顶层parentId: -1;
 * @author bladestone
 *
 */
public class Section implements java.io.Serializable {
    
	private static final long serialVersionUID = 6443628436873479737L;

	private Long id;
     
    private String name;
    private String sectionNumber;
    private boolean isLeaf;
    //
    private Section parentSection;
    
    private Set<Section> subSections;
    private List<KeyNotePoint> keyNotePoints;
     
    public List<KeyNotePoint> getKeyNotePoints() {
		return keyNotePoints;
	}

	public void setKeyNotePoints(List<KeyNotePoint> keyNotePoints) {
		this.keyNotePoints = keyNotePoints;
	}

	public Set<Section> getSubSections() {
		return subSections;
	}

	public void setSubSections(Set<Section> subSections) {
		this.subSections = subSections;
	}

	public Section() {
    	 
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSectionNumber() {
		return sectionNumber;
	}

	public void setSectionNumber(String sectionNumber) {
		this.sectionNumber = sectionNumber;
	}

	public boolean isLeaf() {
		return isLeaf;
	}

	public void setLeaf(boolean isLeaf) {
		this.isLeaf = isLeaf;
	}


	public Section getParentSection() {
		return parentSection;
	}

	public void setParentSection(Section parentSection) {
		this.parentSection = parentSection;
	}
}
